<!DOCTYPE html>
<html>
<head>
<title>adminMan.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/admin.css">
<link rel="stylesheet" type="text/css" href="css/person.css">
<script type="text/javascript" src="js/cookie_util.js"></script>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="js/ajaxfileupload.js"></script>
<script type="text/javascript" src="js/provincelink.js"></script>
<script type="text/javascript" src="js/adminMan.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/exp.js"></script>
<script type="text/javascript">
	var userId = getCookie("userId");
	$(document).ready(function() {
		$("#login-id").text(getCookie("userName"));
		loadAllOrders();
	});
</script>

</head>

<body>
	<div class="header">
		<div class="top">
			<a class="logo">后台管理系统</a>
			<div class="login-info">
				<span>当前登录</span><span id="login-id"></span><a href="JavaScript(0)"
					onclick="safeQuit()">退出登录</a>
			</div>
			<div class="search-box">
				<div class="suggestion_widget" data-default-count="0">
					<input type="text" class="search-input" placeholder="搜索您要找的车"
						data-role="keywordInput" name="keyword" autocomplete="off">
					<button class="search-btn">搜索</button>
				</div>
			</div>
		</div>
		<div class="top-nav">
			<div class="navlist">
				<div style="width:80%; margin-left:auto; margin-right:auto;">
					<span>
						<p class="navi_title">
							<a href="qryCar.html">首页</a>
						</p> </span> <span>
						<p class="navi_title">订单中心</p>
						<p class="checkon">
							<a href="Javascript:void(0)" onclick="adminOrderList(this)">全部订单</a>
						</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="adminOrderList(this)">进行中订单</a>
						</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="adminOrderList(this)">已完成订单</a>
						</p> </span> <span>
						<p class="navi_title">车辆信息</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="addCars(this)">新增车辆</a>
						</p> </span> <span>
						<p class="navi_title">管理中心</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="manageCenter(this)">会员管理</a>
						</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="manageCenter(this)">车辆管理</a>
						</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="manageCenter(this)">订单管理</a>
						</p>
						<p class="">
							<a href="Javascript:void(0)" onclick="manageCenter(this)">体验中心</a>
						</p> </span>
				</div>
			</div>
		</div>
	</div>

	<div class="main">
		<div class="main-content">
			<!-- 订单中心全部订单 -->
			<div class="orderinfo" id="allorder">
				<div class="titlediv" id="base">
					<span>全部订单</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firsta"><a rel="nofollow"
							href="Javascript:void(this)" onclick="qryOrderListBy(this)">默认排序</a>
						</li>
						<li class=""><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按时间</a>
						</li>
						<li class=""><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按状态</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>订单号</td>
							<td>试驾车型</td>
							<td>预约时间</td>
							<td>还车时间</td>
							<td>订单状态</td>
							<td>订单操作</td>
						</tr>
					</thead>
					<tbody class="orderinfodetail">

					</tbody>
				</table>
			</div>
			<!-- 订单中心进行中订单 -->
			<div class="orderinfo" id="onorder" style="display: none">
				<div class="titlediv" id="base">
					<span>进行中订单</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firstb"><a rel="nofollow"
							href="Javascript:void(this)" onclick="qryOrderListBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按时间</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按状态</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>订单号</td>
							<td>试驾车型</td>
							<td>预约时间</td>
							<td>还车时间</td>
							<td>订单状态</td>
							<td>订单操作</td>
						</tr>
					</thead>
					<tbody class="orderinfodetail">

					</tbody>
				</table>
			</div>
			<!-- 订单中心已完成订单 -->
			<div class="orderinfo" id="endorder" style="display: none">
				<div class="titlediv" id="base">
					<span>已完成订单</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firstc"><a rel="nofollow"
							href="Javascript:void(this)" onclick="qryOrderListBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按时间</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="qryOrderListBy(this)">按状态</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>订单号</td>
							<td>试驾车型</td>
							<td>预约时间</td>
							<td>还车时间</td>
							<td>订单状态</td>
							<td>订单操作</td>
						</tr>
					</thead>
					<tbody class="orderinfodetail">

					</tbody>
				</table>
			</div>

			<!-- 人员信息 -->
			<div class="orderinfo" id="deluser" style="display:none">
				<div class="titlediv" id="base">
					<span>人员信息</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firstd"><a rel="nofollow"
							href="Javascript:void(this)" onclick="userOrderBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="userOrderBy(this)">按注册时间</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>用户名</td>
							<td>真实姓名</td>
							<td>联系方式</td>
							<td>证件信息</td>
							<td>注册时间</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody id="usertbody">
					</tbody>
				</table>
			</div>
			<!-- 车辆信息 -->
			<div class="orderinfo" id="delcars" style="display:none">
				<div class="titlediv" id="base">
					<span>车辆信息</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firste"><a rel="nofollow"
							href="Javascript:void(this)" onclick="carsOrderBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="carsOrderBy(this)">按名称</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="carsOrderBy(this)">按售价</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>车辆编号</td>
							<td>车辆品牌</td>
							<td>车辆型号</td>
							<td>车型</td>
							<td>售价</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody id="cartbody">
					</tbody>
				</table>
			</div>
			<!-- 全部订单信息 -->
			<div class="orderinfo" id="delorders" style="display:none">
				<div class="titlediv" id="base">
					<span>订单信息</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firstf"><a rel="nofollow"
							href="Javascript:void(this)" onclick="ordersOrderBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="ordersOrderBy(this)">按时间</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="ordersOrderBy(this)">按状态</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>订单号</td>
							<td>试驾车型</td>
							<td>预约时间</td>
							<td>还车时间</td>
							<td>订单状态</td>
							<td>订单操作</td>
						</tr>
					</thead>
					<tbody id="ordertbody">
					</tbody>
				</table>
			</div>
			<!-- 全部试驾信息 -->
			<div class="orderinfo" id="deltour" style="display:none">
				<div class="titlediv" id="base">
					<span>试驾体验信息</span>
				</div>
				<div class="sortnav">
					<ul class="sequen">
						<li class="firstg"><a rel="nofollow"
							href="Javascript:void(this)" onclick="tourOrderBy(this)">默认排序</a>
						</li>
						<li><a href="Javascript:void(this)" title=""
							onclick="tourOrderBy(this)">按时间</a>
						</li>
					</ul>
				</div>
				<table>
					<thead>
						<tr>
							<td>编号</td>
							<td>体验题目</td>
							<td>发表时间</td>
							<td>作者</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody id="tourtbody">
					</tbody>
				</table>
			</div>
			<!-- 新增车辆 -->
			<div class="" id="addcars" style="display:none">
				<div  class="titlediv" id="base">
					<span>基本信息</span>
				</div>
				<div id="baseinfo">
					<div id="baseinfo1">
					<span>品牌：</span><select id="Select1" class="selSty"></select> 
					<span>车型：</span><select	 id="Select2" class="selSty"></select> 
					<span>车型名称：</span><select id="Select3" class="selSty"></select>
					
					<script type="text/javascript">
						addressInit('Select1', 'Select2', 'Select3');
					</script>
					</div>
					<div id="baseinfo2">
					<span>选择图片：</span>
					<input type="file" id="carpic" name="carpic"/>
					<input type="button" value="上传图片" class="picbut" onclick="addImg()"/> 
					<span id="carid" style="display:none"></span>
					</div>
					<div id="baseinfo3">
					<span>售价：</span><input type="text" id="carprice"/><span>万</span> 
					<span>级别：</span>
					<select id="jibie">
						<option>中大型SUV</option>
						<option>大型车</option>
						<option>跑车</option>
						<option>轻客</option>
						<option>紧凑型车</option>
						<option>中型车</option>
						<option>中大型车</option>
						<option>紧凑型SUV</option>
						<option>中型SUV</option>
						<option>小型车</option>
						<option>MPV</option>
						<option>微型车</option>
						<option>微面</option>
						<option>小型SUV</option>
						<option>微卡</option>
						<option>低端皮卡</option>
						<option>大型SUV</option>
						<option>高端皮卡</option>
					</select> 
					<span>增压方式：</span>
					<select id="torl">
						<option>T：涡轮增压</option>
						<option>L：机械增压</option>
					</select> 
					<span>变速箱：</span>
					<select id="biansuxiang">
						<option>手自一体</option>
						<option>手动</option>
						<option>自动</option>
						<option>双离合</option>
						<option>CVT无级变速</option>
					</select> 
					<span>车身结构：</span>
					<select id="cheshen">
						<option>SUV</option>
						<option>掀背车</option>
						<option>硬顶跑车</option>
						<option>软顶敞篷车</option>
						<option>客车</option>
						<option>两厢车</option>
						<option>三厢车</option>
						<option>旅行车</option>
						<option>硬顶敞篷车</option>
						<option>MPV</option>
						<option>皮卡</option>
						<option>货车</option>
					</select> 
					</div>
					<div id="baseinfo4">
					<span>长宽高(mm)：</span><span>长</span><input type="text" class="ckglength" id="chang"/><span>宽</span><input type="text" class="ckglength" id="kuan"/><span>高</span><input type="text" class="ckglength" id="gao"/> 
					<span>轴距(mm)：</span><input type="text" id="zhouju"/> 
					<span>油箱容积(L)：</span><input type="text" id="youxiangrongji"/> 
					<span>座位数(个)：</span><input type="text" id="sitenum"/>
					</div>
				</div>
				<div class="titlediv" id="base">
					<span>发动机参数</span>
				</div>
				<div id="engineinfo">
				<div id="engineinfo1">
					<span>排量：</span><input type="text" id="pailiang"/> 
					<span>进气形式：</span>
					<select id="jinqi">
						<option>DOHC</option>
						<option>SOHC</option>
						<option>OHV</option>
					</select> 
					<span>气缸：</span><input type="text" id="qigang"/> 
					<span>气缸排列形式：</span>
					<select>
						<option>L：直列</option>
						<option>V：V型排列</option>
						<option>W：W型排列</option>
					</select>
					</div>
					<div id="engineinfo2"> 
					<span>最大马力(Ps)：</span><input type="text" id="maxml"/> 
					<span>最大扭矩(N*m)：</span><input type="text" id="maxnj"/> 
					</div>
					<div id="engineinfo3">
					<span>燃料类型：</span>
					<select id="ranyoutype">
						<option>汽油</option>
						<option>柴油</option>
						<option>插电式混合动力</option>
						<option>油电混合</option>
						<option>纯电动</option>
						<option>增程式</option>
					</select> 
					<span>燃油标号：</span>
					<select id="ranhoubianhao">
						<option>97号(京95号)</option>
						<option>93号（京92号）</option>
						<option>98号</option>
						<option>0号</option>
					</select> 
					<span>供油方式：</span>
					<select id="gongyou">
						<option>直喷</option>
						<option>多点电喷</option>
						<option>混合喷射</option>
					</select> 
					<span>排放标准：</span>
					<select id="paifang">
						<option>欧III</option>
						<option>欧V</option>
						<option>欧IV</option>
						<option>国III</option>
						<option>国V</option>
						<option>国IV</option>
					</select>
					</div>
				</div>
				<div class="titlediv" id="base">
					<span>底盘及制动</span>
				</div>
				<div id="otherinfo">
					<div id="otherinfo1">
					<span>驱动方式：</span>
					<select id="qudong">
						<option>前置四驱</option>
						<option>中置四驱</option>
						<option>后置四驱</option>
						<option>前置前驱</option>
						<option>中置前驱</option>
						<option>前置后驱</option>
						<option>中置后驱</option>
						<option>后置后驱</option>
						<option>双电机四驱</option>
					</select> 
					<span>助力类型：</span>
					<select id="zhuli">
						<option>电动助力</option>
						<option>机械液压助力</option>
						<option>电子液压助力</option>
						<option>液压助力</option>
						<option>无助力</option>
					</select> 
					<span>前悬挂类型：</span>
					<select id="qianxuangua">
						<option>双叉臂式独立悬架</option>
						<option>双横臂螺旋弹簧独立悬架</option>
						<option>独立悬挂</option>
						<option>麦弗逊式独立悬架</option>
						<option>五连杆式独立悬架</option>
					</select> 
					<span>后悬挂类型：</span>
					<select id="houxuangua">
						<option>双叉臂式独立悬架</option>
						<option>双横臂螺旋弹簧独立悬架</option>
						<option>独立悬挂</option>
						<option>麦弗逊式独立悬架</option>
						<option>五连杆式独立悬架</option>
					</select> 
					</div>
					<div id="otherinfo2">
					<span>前制动类型：</span>
					<select id="qianzhidong">
						<option>通风盘式</option>
						<option>陶瓷通风盘式</option>
						<option>盘式</option>
						<option>碳纤通风盘式</option>
						<option>鼓式</option>
					</select> 
					<span>后制动类型：</span>
					<select id="houzhidong">
						<option>通风盘式</option>
						<option>陶瓷通风盘式</option>
						<option>盘式</option>
						<option>碳纤通风盘式</option>
						<option>鼓式</option>
					</select> 
					<span>驻车制动类型：</span>
					<select id="zhuchezhidong">
						<option>电子驻车</option>
						<option>手刹</option>
						<option>脚刹</option>
					</select> 
					<span>远光灯：</span>
					<select id="yuanguangdeng">
						<option>氙气</option>
						<option>卤素</option>
						<option>LED</option>
						<option>激光</option>
						<option>卤素+LED</option>
						<option>卤素+氙气</option>
					</select> 
					<span>近光灯：</span>
					<select id="jinguangdeng">
						<option>氙气</option>
						<option>卤素</option>
						<option>LED</option>
						<option>激光</option>
						<option>卤素+LED</option>
						<option>卤素+氙气</option>
					</select>
					</div>
				</div>
				<div id="addcarinfo">
					<input type="button" value="确认新增" id="addcarbut" onclick="addcarInfo()"/>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
